<div class="panel panel-default" ng-controller="ServiceDurationCtrl">
	<div class="panel-heading">
		城际约租 / 服务时段
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">编号</th>
					<th style="width:100px;">开始时间</th>
					<th style="width:70px;">结束时间</th>
					<th style="width:70px;">显示文本</th>
					<th style="width:70px;">是否包车时段</th>
					<th style="width:80px;">
						<a href tooltip="添加单位" has-authority="RENT_DURATION_ADD">
							<i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i>
						</a>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="duration in dataList">
					<td></td>
					<td>{{duration.id}}</td>
					<td>{{duration.start | date : 'HH:mm:ss'}}</td>
					<td>{{duration.end | date : 'HH:mm:ss'}}</td>
					<td>{{duration.display}}</td>
					<td>
						<span ng-if="duration.monolith">包车时段</span>
						<span ng-if="!duration.monolith">非包车时段</span>
					</td>
					<td>
						<a href tooltip="修改" has-authority="RENT_DURATION_UPDATE">
							<i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',duration,'update')"></i>
						</a>
						<a href tooltip="删除" has-authority="RENT_DURATION_DEL">
							<i class="fa fa-times fa-fw" ng-click="del('sm',duration ,'delete')"></i>
						</a>
					</td>
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="9" style="text-align: center;">暂无服务时段信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>